﻿using System.Collections.Generic;
using System;
using System.ComponentModel.DataAnnotations;

namespace DomusDotNet.Sbm.ObjectModel
{
    public class Loan : BaseObject 
    {
        public DateTime? DelayedReturn { get; set; }
        public DateTime? EffectiveReturnedData { get; set; }        
        public String Note { get; set; }
        [Required]
        public DateTime LoanData { get; set; }
        [Required]
        public DateTime PrevisteReturnData { get; set; }
        [Required]
        public Book Book { get; set; }
        [Required]
        public Member DestinationLoanMember { get; set; }
        [Required]
        public Member BookOwnerMember { get; set; }
    }
}
